package com.cqq.auth.dao;

import java.util.List;
import java.util.Map;

import com.cqq.auth.dao.domain.Organization;
import com.cqq.common.core.interfaces.CommonDao;

/**
 * <h3>组织Dao接口</h3>
 * 
 * @author xijq
 * @version 1.0.0
 * 
 */
public interface OrganizationDao extends CommonDao<Organization> {

	public Integer deleteAll(Integer id);
	
	public List<Organization> queryByIds(Integer[] ids);
	
	public List<Organization> queryByParentId(Integer id);
	
	public List<Organization> queryByName(String name,Integer parentId);
	
	public Organization queryByNameAndParentId(String name,Integer parentId);
	
	public List<Organization> queryByUserId(Integer userId);
	
	public List<Map<String,Integer>> listUserCountByParentId(Integer parentId);
	
	public List<Organization> queryChildrenOrgByName(String name,Integer parentId);
	
	public List<Organization> queryOrgByParentId(Organization org);
	
}
